package com.liveneo.adapter.outinterface.web.platform.request;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

import com.liveneo.adapter.outinterface.util.XMLBeanUtils;

/**
  * @Description: 纸质单证收集
  * @author liveneo-shuqw
  * @date 2016年6月20日 下午5:21:55
  * Copyright: Copyright (c) 2016 
  * Company: 北京朗泰
  * @version 3.0
  */
public class GetPaperDocRequest {
	/** 案件号 **/
	@NotBlank(message="caseNo案件号不能为空")
	private String caseNo;
	/** 损失ID **/
	@NotBlank(message="lossId任务编号不能为空")
	private String lossId;
	/** 查勘员号 **/
	@NotBlank(message="surveyNo查勘员号不能为空")
	private String surveyNo;
	/** 电话 **/
	@NotBlank(message="surveyPhone电话不能为空")
	private String surveyPhone;
	/** 是否是任务 **/
	@Size(min=0,max=1,message="isTask必须在0-1之间")
	private String isTask;
	/** 纸质单证详细说明 **/
	private String paperDocInfo;
	/** 单证人员工号 **/
	@NotBlank(message="docNo单证人员工号不能为空")
	private String docNo;
	/** 单证人员姓名 **/
	@NotBlank(message="docName单证人员姓名不能为空")
	private String docName;

	public String getCaseNo() {
		return caseNo;
	}

	public void setCaseNo(String caseNo) {
		this.caseNo = caseNo;
	}

	public String getLossId() {
		return lossId;
	}

	public void setLossId(String lossId) {
		this.lossId = lossId;
	}

	public String getSurveyNo() {
		return surveyNo;
	}

	public void setSurveyNo(String surveyNo) {
		this.surveyNo = surveyNo;
	}

	public String getSurveyPhone() {
		return surveyPhone;
	}

	public void setSurveyPhone(String surveyPhone) {
		this.surveyPhone = surveyPhone;
	}

	public String getIsTask() {
		return isTask;
	}

	public void setIsTask(String isTask) {
		this.isTask = isTask;
	}

	public String getPaperDocInfo() {
		return paperDocInfo;
	}

	public void setPaperDocInfo(String paperDocInfo) {
		this.paperDocInfo = paperDocInfo;
	}

	public String getDocNo() {
		return docNo;
	}

	public void setDocNo(String docNo) {
		this.docNo = docNo;
	}

	public String getDocName() {
		return docName;
	}

	public void setDocName(String docName) {
		this.docName = docName;
	}

	@Override
	public String toString() {
		return " [caseNo]=" + caseNo + ",\n[lossId]=" + lossId + ",\n[surveyNo]=" + surveyNo
				+ ",\n[surveyPhone]=" + surveyPhone + ",\n[isTask]=" + isTask + ",\n[paperDocInfo]=" + paperDocInfo + ",\n[docNo]="
				+ docNo + ",\n[docName]=" + docName;
	}
	public static void main(String[] args) {
		GetPaperDocRequest r = new GetPaperDocRequest();
		r.setCaseNo("07603008072016000077");
		r.setDocName("test");
		r.setDocNo("124");
		r.setIsTask("0");
		r.setPaperDocInfo("test11111111");
		r.setSurveyNo("124");
		r.setSurveyPhone("124");
		System.out.println(XMLBeanUtils.toXml(r, "UTF-8"));
		
	}
}
